home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sportware Golf
/
Sportware Golf.iso
/
mac
/
Files
/
6IRON.DIR
/
00001_Script_1
next >
Wrap
Text File
|
1995-09-19
|
2KB
|
29 lines
on startmovie
global curdata,curfield,curline,curlist,curstats,fieldlist,numlines,prefix,tempart
global scrlspr,scrltop,scrlbottom,scrlscope
initmovie()
set curdata=the number of cast "equipdata"
set curfield=the number of cast "equipshow"
set curline=1 --the current top line of the scrolling field
set curlist=the number of cast "equiplist"
set curstats=the number of cast "Equipstats"
set fieldlist=[1,4,7,9,"art"] --the line positions for each field
set numlines=24 --the number of lines in the scrolling field
set prefix="IRON"
set tempart=the number of cast "tempart"
set scrlspr=20 --the sprite number of the scroll box - place in channel 16
set scrltop=84 --the topmost position of the scroll box
set scrlbottom=358 --the bottommost position of the scroll box
set scrlscope=(the number of lines in field curlist)-numlines+1 --the range of lines to scroll
put line 1 to numlines of field curlist into field curfield --initialize scrolling field
set the textheight of field curfield = 12 -- so Windows will scroll to end
set the textheight of field curstats=13 --set line spacing of stats field #1
set the textheight of field (curstats+1)=13 --set line spacing of stats field #2
puppetsprite scrlspr,1 --make scroll box a puppet
end startmovie
on stopmovie
global curfield,curlist,numlines,scrlspr
put line 1 to numlines of field curlist into field curfield --initialize scrolling field
puppetsprite scrlspr,0 --turn off puppet for scroll box
end